import { defineConfig } from 'vite'
import uni from "@dcloudio/vite-plugin-uni"
import AutoImport from "unplugin-auto-import/vite"

export default defineConfig({
	plugins: [
		uni(),
		// 自动导入配置
		AutoImport({
			imports:[
				'vue',
				'uni-app'
			]
		})
	],
	// optimizeDeps: {
	//   exclude: process.env.UNI_PLATFORM === 'h5' && process.env.NODE_ENV === 'development' ? ['wot-design-uni'] : []
	// }
})